package cn.zn.modules.budget.cur.dao;

import cn.zn.modules.budget.cur.entity.TBudgetInfo;
import cn.zn.modules.budget.cur.entity.vo.BudgetInfoDeptSumVO;
import cn.zn.modules.budget.cur.entity.vo.BudgetInfoSumVO;
import cn.zn.modules.budget.vo.BudgetMoneyVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TBudgetInfoMapper extends BaseMapper<TBudgetInfo> {
    List<TBudgetInfo> findList(@Param("ids") List<String> ids);

    List<Map<String, String>> findSGForInfo(@Param("budgetInfoIds") List<String> budgetInfoIds);

    BudgetMoneyVO findBudgetMoney(@Param("deptCode") String deptCode, @Param("projectCode") String projectCode, @Param("cateCode") String cateCode);

    List<BudgetInfoSumVO> querySum(@Param("deptCode") String deptCode, @Param("projectName") String projectName, @Param("cateName") String cateName);

    List<BudgetInfoDeptSumVO> querySumForDept(@Param("year") Integer year);
}